@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './light/index.scss';
@import './dark/index.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

.sidebar-logo-container:after {
  content: "";
  position: absolute;
  width: 80%;
  height: .5px;
  background: #2494f4;
  bottom: 0;
  left: 10%
}

// 页头右边按钮操作
.operate_box {
  display: flex;
  justify-content: space-between;
}

// 表格搜索条件框

.search-form-box {
  padding: 20px;
  border-radius: 5px;
  display: flex;
  height: 90px;
  overflow: hidden;
  position: relative;

  .left-box {
    flex: 1;
    flex-wrap: wrap;
    display: flex;

    .el-form-item {
      width: 31.3%;
      margin-right: 20px;
    }
  }

  .right-box {
    width: 300px;
    text-align: right;
    padding-right: 20px;
    font-size: 14px;
    padding-top: 5px;
  }

  .toggle-box {
    width: 100%;
    height: 20px;
    bottom: 0;
    left: 0px;
    position: absolute;
    text-align: center;
    display: flex;
    justify-content: space-around;

    .img-box {
      width: 20px;
      height: 20px;
      background: url('../assets/toggle.png');
      background-size: 100%;
      background-position: top center;
      z-index: 1;
      margin-top: -3px;
    }
  }

  .toggle-box:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 0px;
    border-top: 12px solid #6888f3;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
  }
}

.search-form-box-active {
  height: auto;

  .img-box {
    transform: rotate(180deg);
  }
}

// 表格-新增等操作按钮框
.operate-btn-wrap {
  padding: 0px 20px;
}
